package org.springcloud.configClient.Contorller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 
 * @author huangjd
 * @date 2018年1月23日
 */
@RestController
@RefreshScope
public class HelloController {
	 	@Value("${profile}")
	    private String profile;
	    
	    @RequestMapping(value="/config/hi")
	    public String hi(){
	    	return profile;
	    }
}
